import request from '@/utils/request'

// 查询配置参数列表
export function listConfigField(query) {
  return request({
    url: '/third/configField/list',
    method: 'get',
    params: query
  })
}

// 查询配置参数详细
export function getConfigField(id) {
  return request({
    url: '/third/configField/' + id,
    method: 'get'
  })
}

// 新增配置参数
export function addConfigField(data) {
  return request({
    url: '/third/configField',
    method: 'post',
    data: data
  })
}

// 修改配置参数
export function updateConfigField(data) {
  return request({
    url: '/third/configField',
    method: 'put',
    data: data
  })
}

// 删除配置参数
export function delConfigField(id) {
  return request({
    url: '/third/configField/' + id,
    method: 'delete'
  })
}
